Remove the spin on VCPUF_running from context_switch().
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 17 Jan 2006 13:24:42 +0000 (14:24 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 17 Jan 2006 13:24:42 +0000 (14:24 +0100)
commitaf8becc6b9cf5c23eba11be6d675d58e5c1ecfcb
treea34adedff7da325dffdabeac6f065840bd02d876
parentd7d7c642c2bd5bdb936303d686e701e10b434f75
Remove the spin on VCPUF_running from context_switch().
It doesn't work because we already set VCPUF_running
locally, and the scheduler should not pick another CPU's
VCPUF_running VCPU anyway, since it mustn't modify the
processor field.

Instead just add a simple assertion to the scheduler to
ensure the scheduling algorithm is not picking an
inappropriate VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/domain.c
xen/common/schedule.c